home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
NONPORT.ZIP
/
WBORDER.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
46 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef wborder
#ifndef NDEBUG
char *rcsid_wborder = "$Header: c:/curses/nonport/RCS/wborder.c%v 2.0 1992/11/15 03:18:29 MH Rel $";
#endif
/*man-start*********************************************************************
wborder() - sets the border characters in the passed window.
PDCurses Description:
This routine sets the border characters for the passed window.
PDCurses Return Value:
This function returns OK upon success otherwise ERR is returned.
PDCurses Errors:
It is an error for stdscr to be a NULL pointer.
Portability:
PDCurses int wborder( chtype l, chtype r, chtype t, chtype b,
chtype tl, chtype tr chtype bl, chtype br );
**man-end**********************************************************************/
int wborder(WINDOW *win,chtype l,chtype r,chtype t,chtype b,chtype tl,chtype tr,chtype bl,chtype br)
{
if (win == (WINDOW *)NULL)
return( ERR );
win->_borderchars[0] = l;
win->_borderchars[1] = r;
win->_borderchars[2] = t;
win->_borderchars[3] = b;
win->_borderchars[4] = tl;
win->_borderchars[5] = tr;
win->_borderchars[6] = bl;
win->_borderchars[7] = br;
return( OK );
}